import React, { Component } from 'react'
import { View } from '@tarojs/components'
import Taro from "@tarojs/taro";

import './index.scss'


export default class Index extends Component {

  componentDidMount() {
    this.setNavBar();
  }

  componentDidUpdate () {
    this.setNavBar();
  }

  setNavBar () {
    Taro.setNavigationBarColor({
      frontColor: '#000000',
      backgroundColor: '#ffffff'
    });

    Taro.setNavigationBarTitle({
      title: '我的'
    });
  }

  render () {
    return (
      <View>
        My
      </View>
    )
  }
}
